package com.example.test_20210630;


import java.io.*;

public class BufterReader {

    public static void main(String[] args) throws Exception{
//        String filePath = "C:/Users/leizi/Desktop/salary接口/颜值排行榜/aaa/bbbb.txt";
////        FileInputStream file = new FileInputStream("C:/Users/leizi/Desktop/salary接口/颜值排行榜/aaa/8888.png");
////        InputStreamReader streamReader = new InputStreamReader(file,"UTF-8");
//        FileReader fileReader = new FileReader(filePath);
//        BufferedReader reader = new BufferedReader(fileReader);
//        FileOutputStream outputStream = new FileOutputStream("src/main/java/com/example/test_20210630/222.txt");
//        String len;
//        while ((len = reader.readLine()) != null){
//            outputStream.write(len.getBytes());
//        }
        BufferedOut();
    }

    public static void BufferedOut() throws Exception{
        OutputStream outputStream = new FileOutputStream("src/main/java/com/example/test_20210701_FileReader/333.txt",true);
        BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(outputStream);
        bufferedOutputStream.write("我的电脑桌".getBytes());
        bufferedOutputStream.flush();
    }
}
